﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TLCApp.WF.UserControls
{
    public partial class ContractSelector : UserControl
    {
        public ContractSelector()
        {
            InitializeComponent();
            ShowSite = false;
        }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string ContractNo
        {
            get;
            set;
        }
        /// <summary>
        /// 工地名称
        /// </summary>
        public string SiteNo
        {
            get;
            set;
        }
        bool _ShowSite;
        /// <summary>
        /// 是否显示工地名称下拉框
        /// </summary>
        public bool ShowSite
        {
            get
            {
                return _ShowSite;
            }
            set
            {
                _ShowSite = value ;
                this.Width = _ShowSite ? 329 : 201;
            }
        }
    }
}
